package client;

import java.io.IOException;
import java.util.List;

/**
 * how to get a timeline
 * 1. use LookupTable to determine which server to communicate
 * 2. inovke the remote rpc procedure to get the result
 * 
 * TODO
 * 1. connection pool?
 * 2. rpc implementation?
 * @author xiafan68
 *
 */
public interface IWeiboCacheClient {
	public void connect() throws IOException;
	
	public void close() throws IOException;
	
	public List<String> getUserHomeTimeLine(String uid, long start, long end, int topk) ;
	
	public List<String> getUserTimeLine(String uid, long start, long end, int topk) ;
	
	public void putTweets(String uid, String tweet, long timestamp);
}
